package com.example.springioc.dao;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Repository;

@Data
@Repository
// 使用ConfigurationProperties注解从配置文件中找到stu内容,并给存在spring中的Student对象赋值
@ConfigurationProperties(prefix = "stu")
public class Student {
    public String name;
    public int age;
    public String gender;
}
